from alg import Solution
from gen import generate_test_cases

def main():
    test_cases = generate_test_cases()
    s = Solution()
    for i, case in enumerate(test_cases):
        nums = case["nums"]
        k = case["k"]
        expected = case["output"]
        result = s.maximumOr(nums, k)
        print(f"测试样例 {i+1}:")
        print(f"输入: nums={nums}, k={k}")
        print(f"输出: {result}")
        print(f"期望输出: {expected}")
        print(f"测试通过: {result == expected}")
        print()

if __name__ == "__main__":
    main() 